package cn.cqie.attendance.manager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @author 697
 * @date 2021/6/16 11:59
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Teacher对象", description="")
public class AdminTeacher extends Model {

    private static final long serialVersionUID = -6076396448222680984L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "老师名")
    private String teacherName;

    @ApiModelProperty(value = "工号")
    private String jobNumber;


    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "身份证")
    private String identity;

    @ApiModelProperty(value = "手机号")
    private String phone;


    @ApiModelProperty(value = "性别 0女 1男")
    private Integer gender;

    @ApiModelProperty(value = "状态 0无效 1有效")
    private String status;

    @ApiModelProperty(value = "职位")
    private Integer positionId;

    @ApiModelProperty(value = "角色 0普通老师 1管理员")
    private String role;

    @ApiModelProperty(value = "登录次数")
    private String loginTimes;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "提交时间")
    private Date submitTime;


}
